Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 8 Forum

Notes/Domino 8 Forum

Previous Next

Java Newline Problem

Andre, I decided to crack open a test .nsf with a hex editor and I think I've got a pointer to the problem.

What does notes use internally to store a newline char? Is it hex 00?

I took a blank database, created an agent that would create a doc with two items, "form" and "Bar" with the values "Foo" and "wagga\r\nwagga" respectively. I then created a form called "Foo" with a field "Bar" and ran the agent twice. Next I opened the second document, copied the value from Bar and copied it into a text editor that would show line endings. The line endings showed [CR][LF] as expected. I then copied that back to the clipboard and pasted back into notes. I then saved the document, closed the database and then opened it in a hex editor.

Looking at the hex I could find two instances of pairs of the string "wagga", the first pair separated by the chars 0D 0A, the next pair by 00.

I've tried setting the value "wagga"+char(0)+"wagga", to see if that would work, but it doesn't. In fact it replaces the 00 with 01 and truncates the rest of the string.

Does any of this help?


Feedback response number WEBB6ZFEGX created by ~Rex Fezgerokony on 03/19/2007

Setting Newlines In Text Fields Fro... (~Tanita Asafool... 17.Mar.07)
. . Paste it in and what are the charac... (~Sean Chutootex... 19.Mar.07)
. . . . Java Newline Problem (~Tanita Asafool... 19.Mar.07)
. . . . . . Java Newline Problem (~Tanita Asafool... 19.Mar.07)
. . Java Newline Problem. (~Tanita Asafool... 8.May.07)
. . . . Java Newline Problem (~Rex Fezgerokon... 12.Jun.08)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS